import request from '@/utils/request';

/** 设计师接单定稿列表 */
export const getDesignerAcceptOrderListApi = (data: any) => {
    return request({
        url: '/system/designerAcceptOrder/list',
        method: 'post',
        data: data
    })
};

/** 设计师分单 */
export const designerDistributionApi = (data: any) => {
    return request({
        url: '/system/designerAcceptOrder/designerDistribution',
        method: 'post',
        params: data
    });
};



/** 设计师接单 */
export const designerAcceptApi = (data: any) => {
    return request({
        url: '/system/designerAcceptOrder/designerAccept',
        method: 'post',
        params: data
    });
};



/** 获取设计师定稿页面详情 */
export const getDesignerAcceptOrderApi = (id: any) => {
    return request({
        url: `/system/designerAcceptOrder/${id}`,
        method: 'get'
    });
};

/** 修改定制类型关联工序 */
export const editDesignerAcceptOrderApi = (data: any) => {
    return request({
        url: `/system/designerAcceptOrder`,
        method: 'put',
        data: data
    });
};

/** 获取烫金上传信息 */
export const getGildingUploadInfoApi = (id: any) => {
    return request({
        url: `/system/designerAcceptOrder/getGildingUploadInfo`,
        method: 'get',
        params: {id:id},
    });
};

/** 查询所有烫金版列表  */
export const getGildingInfoAllApi = () => {
    return request({
        url: `/system/gildingInfo/getAll`,
        method: 'get',
    });
};

/** 新增烫金版 */
export const addGildingInfoApi = (data: any) => {
    return request({
        url: `/system/gildingInfo`,
        method: 'post',
        data: data
    });
};

/** 修改烫金版 */
export const editGildingInfoApi = (data: any) => {
    return request({
        url: `/system/gildingInfo`,
        method: 'put',
        data: data
    });
};

/** 获取设计师订单详情 */
export const getOrderDetailApi = (id: any) => {
    return request({
        url: `/system/customizedProduct/getOrderDetail?id=${id}`,
        method: 'get',
    });
};

/** 烫金搞 就绪 */
export const gildingReadyApi = (data: any) => {
    return request({
        url: `/system/designerAcceptOrder/gildingBeReady`,
        method: 'put',
        params: data
    });
};
